package com.example.musicplayer.profile.songlist

import androidx.fragment.app.Fragment


class SongListDetailFragment : Fragment() {

//    private lateinit var recyclerView: RecyclerView
//    private lateinit var adapter: SongAdapter
//
//    companion object {
//        fun newInstance(songs: List<Song>): SongListDetailFragment {
//            val fragment = SongListDetailFragment()
//            val args = Bundle()
//            args.putParcelableArrayList("songs", ArrayList(songs))
//            fragment.arguments = args
//            return fragment
//        }
//    }
//
//    override fun onCreateView(
//        inflater: LayoutInflater, container: ViewGroup?,
//        savedInstanceState: Bundle?
//    ): View? {
//        return inflater.inflate(R.layout.fragment_song_list_detail, container, false)
//    }
//
//    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
//        super.onViewCreated(view, savedInstanceState)
//
//        // 获取传递过来的歌曲列表
//        val songs = arguments?.getParcelableArrayList<Song>("songs")
//
//        // 初始化 RecyclerView
//        recyclerView = view.findViewById(R.id.recycler_view_songs)
//        recyclerView.layoutManager = LinearLayoutManager(context)
//
//        // 初始化适配器并设置到 RecyclerView
//        adapter = SongAdapter(songs.orEmpty())
//        recyclerView.adapter = adapter
//    }
}